package com.ityangxu.langchain4j.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("users") // 指定表名
public class User {
    @TableId(type = IdType.AUTO) // 主键，并且是自增
    private Integer userId;

    @TableField("username")
    private String username;

    @TableField("gender")
    private Integer gender; // 1: 男, 2: 女

    @TableField("email")
    private String email;

    @TableField("phone")
    private String phone;

    @TableField("password_hash")
    private String passwordHash;

    @TableField("role")
    private String role;

    @TableField("status")
    private Integer status;

    @TableField("created_at")
    private LocalDateTime createdAt;

    @TableField("updated_at")
    private LocalDateTime updatedAt;
}